<?php

require_once("../../controllers/init.php");
require_once($FILE_SYSTEM_ROOT."/controllers/authentication.php");

//print_r($_POST);

if (isset($_POST['eventid']))
	$eventID = $_POST['eventid'];

$event = new MusicEvent($eventID);

$event->setDate($_POST['date']);
$event->setTime($_POST['time']);
//$event->setDateTime($_POST['date']);
$event->setChoir($_POST['choir']);
$event->setNote($_POST['note']);
$event->setService($_POST['service']);
$event->setPsalms($_POST['psalms']);
$event->setHymns($_POST['hymns']);
$event->setIntroit($_POST['introit']);
$event->setResponses($_POST['responses']);
$event->setMass($_POST['mass']);
$event->setCanticles($_POST['canticles']);
$event->setAnthem($_POST['anthem']);

$event->save();
	

